//
//  WPro2ViewController.swift
//  iiatn
//
//  Created by mnine on 18/3/31.
//  Copyright © 2018年 mnine. All rights reserved.
//

import UIKit

class WPro2ViewController: WCProViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // 获取首页数据
        weak var weakSelf = self
        WNetwork.shareNetworkTool.loadMPro(catid: 2) { (mpros) in
            weakSelf!.items = mpros
            weakSelf!.tableView!.reloadData()
        }
    }
    
    override func loadData() {
        // 获取首页数据
        weak var weakSelf = self
        WNetwork.shareNetworkTool.loadMPro(catid: 2) { (mpros) in
            weakSelf!.items = mpros
            weakSelf!.tableView!.reloadData()
            weakSelf!.refreshControl?.endRefreshing()
        }
    }
    
}
